home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: hraiser@cloud9.net
- Newsgroups: comp.lang.c,comp.lang.c.moderated
- Subject: Re: Leading and Trailing Blanks
- Followup-To: comp.lang.c,comp.lang.c.moderated
- Date: 5 Jan 1996 09:52:46 -0600
- Organization: Cloud 9 Internet, White Plains, NY, USA
- Sender: clc@solutions.solon.com
- Approved: clc@solutions.solon.com
- Message-ID: <4cjhge$f7g@solutions.solon.com>
- References: <4chh1b$685@solutions.solon.com>
- NNTP-Posting-Host: solutions.solon.com
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
-
- Casey Claiborne (mskc@io.com) wrote:
- :
- : Hello -
- : I am wondering if anyone out there has a program (or knows of one)
- : that allows one to strip leading and trailing blanks from a string.
- : ex:
- :
- : char test[20];
- : strcpy(test," TESTING ");
- : printf("%s", test);
- :
- : will produce an output like
- : TESTING
- :
-
- Check out Snipets 10/95 at Simtel \msdos\c\snip1095.zip. You will will
- 100s of C programming functions and tips, incuding deadling with trailing
- and leading blanks.
-